import numpy as np

# 数组的相乘和数组的点积
n1 = np.array([[1, 2], [3, 4], [5, 6]])
n2 = np.array([1, 2])

print(n1)
print(n2)

print('数组的乘积', n1 * n2)

print("数组的点积", np.dot(n1, n2)) # 相乘之后，各行相加

